﻿<?xml version="1.0" encoding="utf-8"?>
<Window
    x:Class="Automator.Tasks.Windows.SendMailTaskEditWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ctrls="clr-namespace:Automator.Tasks.Core.UI;assembly=Automator.Tasks.Core"
    Title="Edit"
    ShowInTaskbar="False"
    WindowStartupLocation="CenterOwner"
    ResizeMode="CanResize"
    MinWidth="400"
    MinHeight="350"
    Background="{x:Static SystemColors.ControlBrush}"
    Height="350"
    Width="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition
                Height="Auto" />
            <RowDefinition
                Height="*" />
            <RowDefinition
                Height="Auto" />
        </Grid.RowDefinitions>
        <ctrls:EditTaskHeader
            x:Name="header"
            Grid.Row="0" />
        <DockPanel
            LastChildFill="True"
            Grid.Row="1">
            <DockPanel
                LastChildFill="True"
                DockPanel.Dock="Top">
                <TextBlock
                    Margin="8"
                    VerticalAlignment="Center"
                    Text="SMTP server:"
                    MinWidth="65"
                    DockPanel.Dock="Left" />
                <TextBox
                    Margin="0,4,8,4"
                    VerticalContentAlignment="Center"
                    MinWidth="50"
                    x:Name="edtPort"
                    DockPanel.Dock="Right"
                    TabIndex="1" />
                <TextBlock
                    Margin="8"
                    VerticalAlignment="Center"
                    Text="Port:"
                    DockPanel.Dock="Right" />
                <TextBox
                    Margin="0,4,0,4"
                    VerticalContentAlignment="Center"
                    x:Name="edtHost"
                    TabIndex="0" />
            </DockPanel>
            <DockPanel
                LastChildFill="True"
                DockPanel.Dock="Top">
                <TextBlock
                    Margin="8"
                    VerticalAlignment="Center"
                    Text="From:"
                    MinWidth="65"
                    DockPanel.Dock="Left" />
                <TextBox
                    Margin="0,4,8,4"
                    VerticalContentAlignment="Center"
                    x:Name="edtFrom"
                    TabIndex="2" />
            </DockPanel>
            <DockPanel
                LastChildFill="True"
                DockPanel.Dock="Top">
                <TextBlock
                    Margin="8"
                    VerticalAlignment="Center"
                    Text="To:"
                    MinWidth="65"
                    DockPanel.Dock="Left" />
                <TextBox
                    Margin="0,4,8,4"
                    VerticalContentAlignment="Center"
                    x:Name="edtTo"
                    TabIndex="3" />
            </DockPanel>
            <DockPanel
                LastChildFill="True"
                DockPanel.Dock="Top">
                <TextBlock
                    Margin="8"
                    VerticalAlignment="Center"
                    Text="Subject:"
                    MinWidth="65"
                    DockPanel.Dock="Left" />
                <TextBox
                    Margin="0,4,8,4"
                    VerticalContentAlignment="Center"
                    x:Name="edtSubj"
                    TabIndex="4" />
            </DockPanel>
            <TextBlock
                Margin="80,0,8,0"
                FontStyle="Italic"
                Text="Body supports HTML tags"
                DockPanel.Dock="Top" />
            <DockPanel
                LastChildFill="True"
                DockPanel.Dock="Top">
                <TextBlock
                    Margin="8"
                    VerticalAlignment="Center"
                    Text="Body:"
                    MinWidth="65"
                    DockPanel.Dock="Left" />
                <TextBox
                    Margin="0,4,8,4"
                    x:Name="edtBody"
                    TextWrapping="Wrap"
                    VerticalScrollBarVisibility="Auto"
                    TabIndex="5" />
            </DockPanel>
        </DockPanel>
        <ctrls:EditTaskFooter
            x:Name="footer"
            Grid.Row="2" />
    </Grid>
</Window>